package com.example.lin.enums;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RoleEnum {
    SUPER_ADMIN(1, "超级管理员"),

    ORDINARY_ADMIN(2, "普通管理员"),

    TEACHER(3, "教师"),

    STUDENT(4, "学生"),

    AFFAIRS(5, "学工处"),
    ;

    private Integer code;

    private String name;
}
